package com.qian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.lang.reflect.Type;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employees {
    //员工id默认为long型的
    @TableId(type = IdType.ID_WORKER)
    private Long employeeId;            //员工ID,利用雪花算法防止重复
    private String employeeAccount;     //员工帐号
    private String employeePassword;    //员工密码
    private String employeeName;        //员工姓名
    private String employeeCompany;     //员工公司
    private String employeeGender;      //员工性别
    private String employeeEmail;       //员工邮箱
    private String employeeAddress;     //员工地址
    private String employeePosition;    //员工职位
    private int Authority;              //员工权限
    @TableLogic
    //逻辑删除
    private int deleted;                //删除代码
    //租户信息默认为long型的
    private Long tenantId;              //租户号
}
